package com.chaofan.authsso.core.util;

/**
 * Author: Chaofan
 * Date: 2020/6/5 15:44
 * email: chaofan2685@qq.com
 */
public class CacheKeyUtil {

    private static String TOKEN_KEY_PRDFIX = "SSO_TOKEN:";
    private static String AUTH_CODE_KEY_PRDFIX = "AUTH_CODE:";
    private static String APPLY_TOKEN_KEY_PRDFIX = "APPLY_TOKEN:";
    private static String SESSION_CODE_KEY_PRDFIX = "SESSION_CODE_KEY_PRDFIX:";

    public static String tokenKey(String key){
        return TOKEN_KEY_PRDFIX+key;
    }

    public static String authCodeKey(String key){
        return AUTH_CODE_KEY_PRDFIX+key;
    }

    public static String applyTokenKey(String key){
        return APPLY_TOKEN_KEY_PRDFIX+key;
    }

    public static String sessionCodeKey(String key){
        return SESSION_CODE_KEY_PRDFIX+key;
    }

}
